package mjc.compiler;

public class INFOATTRIBUT extends INFO {

	private static final long serialVersionUID = 1L;
	
	private DTYPE type;
	private String visibilite;
	
	public INFOATTRIBUT(String _nom, DTYPE _type, String _visibilite) {
		super(_nom);
		type = _type;
		visibilite = _visibilite;
		isMethode = false;
	}
	
	public INFOATTRIBUT(String _nom, DTYPE _type) {
		super(_nom);
		type = _type;
		visibilite = "public";
	}
	
	public DTYPE getType() {
		return type;
	}
	
	public String toString() {
		return visibilite+" "+getNom()+" : "+type.getNom();
	}

}
